/*
  {
    bannerList: [
      {
        id: "1194556896025845762",
        gmtCreate: "2019-11-13 18:05:32",
        gmtModified: "2021-08-09 21:28:41",
        deleted: false,
        title: "大数据Scala入门到精通（新版）",
        imageUrl:
          "https://gdhrss-1251316161.file.myqcloud.com/public/35b4100d915aa05fbe7b83e426733296e691ed8d1660562910976/PC%E6%96%B0%E9%A6%96%E9%A1%B5banner.png",
        linkUrl: "/course/1424997480087281666",
        sort: 1,
      },
    ];
  }
*/

export interface IGetHomeBannerListApiResponse {
  bannerList: BannerList;
}

export interface BannerItem {
  id: string;
  // gmtCreate: string;
  // gmtModified: string;
  // deleted: boolean;
  title: string;
  imageUrl: string;
  linkUrl: string;
  sort: number;
}

export type BannerList = BannerItem[];

/*
  {
    "teacherList": [
      {
        "id": "1196725201876611073",
        "gmtCreate": "2019-11-19 17:41:37",
        "gmtModified": "2022-05-09 20:04:27",
        "deleted": false,
        "name": "孟老师",
        "intro": "具有多年项目开发和教育培训经验，曾在日本野村证券主持开发金融证券项目，对金融数据处理具有丰富的经验。曾为北京积水潭医院主持开发过网络预约，挂号，分诊系统等。对主流框架Spring、Struts2、Hibernate、MyBatis、SpringMVC、SpringBoot、SpringCloud有深入的研究。",
        "career": "具有多年项目开发和教育培训经验，曾在日本野村证券主持开发金融证券项目，对金融数据处理具有丰富的经验。曾为北京积水潭医院主持开发过网络预约，挂号，分诊系统等。对主流框架Spring、Struts2、Hibernate、MyBatis、SpringMVC、SpringBoot、SpringCloud有深入的研究。",
        "level": 1,
        "avatar": "http://47.93.148.192:8080/group1/M00/01/72/rBHu8mEQy3aAV4w5AAAy8BAv7sQ653.jpg",
        "sort": 1
      },
    ],
    "courseList": [
      {
        "id": "18",
        "teacherId": "1189389726308478977",
        "subjectId": "1178214681139539969",
        "subjectParentId": "1178214681118568449",
        "title": "Java精品课程",
        "price": 22800.00,
        "lessonNum": 20,
        "cover": "https://online-teach-file.oss-cn-beijing.aliyuncs.com/cover/2021/08/09/e4ee03d7-52bd-41ca-99f9-04dc23250a71.jpg",
        "buyCount": 6786,
        "viewCount": 68485,
        "version": 6,
        "status": "Normal",
        "gmtCreate": "2018-04-02 21:28:46",
        "gmtModified": "2022-09-20 09:19:40"
      },
    ]
  }
*/

export interface IGetHomeDataListApiResponse {
  teacherList: TeacherList;
  courseList: CourseList;
}

export interface CourseItem {
  id: string;
  teacherId: string;
  subjectId: string;
  subjectParentId: string;
  title: string;
  price: number;
  lessonNum: number;
  cover: string;
  buyCount: number;
  viewCount: number;
  version: number;
  status: string;
  gmtCreate: string;
  gmtModified: string;
}

export type CourseList = CourseItem[];

export interface TeacherItem {
  id: string;
  // gmtCreate: "2019-11-19 17:41:37";
  // gmtModified: "2022-05-09 20:04:27";
  // deleted: false;
  name: string;
  intro: string;
  career: string;
  level: number;
  avatar: string;
  sort: number;
}

export type TeacherList = TeacherItem[];
